package com.share.cloudStorage.logs.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.share.cloudStorage.admin.model.Params;
import com.share.cloudStorage.logs.dao.LogDao;
import com.share.cloudStorage.logs.model.Logs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogServiceImpl extends ServiceImpl<LogDao, Logs>  implements LogService{
    @Autowired
    private LogDao logDao;
    @Override
    public List<Logs> getlog(Params params) {
        List<Logs> logs = logDao.getlog(params.getQueryParam(), params.getPageNum(), params.getPageSize());
        return logs;
    }
}
